import { RoleEntityPropNameEnum } from '../enums/role-entity-prop-name.enum'

/**
 * 角色表对应的实体类属性取值限制常量组成的对象
 */
export const RoleEntityPropValLimitConst = {
  [RoleEntityPropNameEnum.NAME]: {
    minLength: 1,
    maxLength: 20,
  },
  [RoleEntityPropNameEnum.CODE]: {
    minLength: 1,
    maxLength: 50,
  },
  [RoleEntityPropNameEnum.SORT]: {
    min: 0,
    max: Number.MAX_SAFE_INTEGER,
  }
}